<template>
	<view class="ys">
		<view class="list">
			<view class="item" v-for="(item,index) in list" :key="index"
				@click="toPage(`/pages/room/detail?id=${item.id}`)">
				<view class="imgbox">
					<image src="/static/img/home.png" mode=""></image>
				</view>
				<view class="infobox">
					<view class="name">
						保利花园小区一居室
					</view>
					<view class="sizebox">
						<view class="size">
							25㎡
						</view>
						<view class="long">
							距离公交站150米
						</view>
					</view>
					<view class="pricebox">
						<text class="tips">限时特惠</text>
						<view class="num">
							￥<text>800</text> /月
						</view>
					</view>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				list: [1, 2, 3]
			}
		},
		onLoad() {

		},
		methods: {

		}
	}
</script>

<style lang="scss">
	page {
		background: #f2f2f2;
	}

	.list {
		padding: 0 10px;

		.item {
			display: flex;
			align-items: center;
			margin-bottom: 10px;
			background: rgba(249, 250, 253, 1);
			padding: 10px 5px;

			.imgbox {
				width: 35%;
				height: 90px;

				image {
					width: 100%;
					height: 100%;
				}
			}

			.infobox {
				width: 65%;
				padding-left: 10px;
				box-sizing: border-box;

				.name {
					font-weight: bold;
					font-size: 17px;
				}

				.sizebox {
					display: flex;
					align-items: center;
					font-size: 13px;
					color: #ADADAD;
					margin-top: 10px;

					.size {
						padding-right: 10px;
						border-right: 1px solid #ADADAD;
						margin-right: 8px;
					}
				}

				.pricebox {
					display: flex;
					align-items: center;
					margin-top: 10px;
					color: #FC7941;

					.tips {
						background: #FC7941;
						color: #fff;
						font-size: 13px;
						padding: 4px 8px;
						border-radius: 5px;
						margin-right: 8px;
					}

					.num {
						font-size: 14px;

						text {
							font-size: 18px;
							font-weight: bold;
							margin-right: 2px;
						}
					}
				}
			}
		}
	}
</style>